import request from '@/request/index.js'




export function getType() {
	return request.get({
		url: `/api/index/getType`,
	});
}
export function getGoods(data) {

	return request.get({
		url: `/api/index/getGoods`,
		data
	});
}
export function getLimitGoods(data) {

	return request.get({
		url: `/api/index/getLimitGoods`,
		data
	});
}
export function getSpecialGoods(data) {

	return request.get({
		url: `/api/index/getSpecialGoods`,
		data
	});
}
export function exchangegoodlist(data) {
	return request.get({
		url: `/api/index/exchangegoodlist`,
		data
	});
}
export function getGoodsDetail(data) {
	return request.get({
		url: `/api/index/getGoodsDetail`,
		data
	});
}
export function geteschagneGoodsDetail(data) {
	return request.get({
		url: `/api/index/geteschagneGoodsDetail`,
		data
	});
}
export function isFavorited(data) {
	return request.get({
		url: `/api/goods/isFavorited`,
		data
	});
}
export function favorite(data) {
	return request.post({
		url: `/api/goods/favorite`,
		data
	});
}
export function goodsCommentOk(data) {
	return request.get({
		url: `/api/goods/goodsCommentOk`,
		data
	});
}
export function favoriteList(data) {
	return request.get({
		url: `/api/goods/favoriteList`,
		data
	});
}
export function createOrder(data) {
	return request.post({
		url: `/api/index/createOrder`,
		data
	});
}
export function buyscoregoods(data) {
	return request.post({
		url: `/api/index/buyscoregoods`,
		data
	});
}
export function banner() {
	return request.get({
		url: `/api/index/banner`,
		
	});
}